package com.tyqx.biz;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableScheduling
@ComponentScan(basePackages = {"com.tyqx.service.impl","com.tyqx.biz.*"},basePackageClasses = {com.tyqx.biz.SchedulerSubServerNetworkInterruptionSendMessage.class,com.tyqx.biz.Constant.class})
@SpringBootApplication(exclude = {HibernateJpaAutoConfiguration.class, MongoAutoConfiguration.class, MongoDataAutoConfiguration.class},scanBasePackages = "com.tyqx")
@ServletComponentScan
@EnableTransactionManagement
@EnableAsync
@MapperScan({"com.tyqx.mapper"})
public class DetectSubServerInternetStatusApplication {

    public static void main(String[] args) {
        SpringApplication.run(DetectSubServerInternetStatusApplication.class, args);
    }

}
